package com.ideaaedi.zoo.diy.artifact.dynamic.datasource;

import com.ideaaedi.zoo.diy.artifact.dynamic.datasource.properties.ZooDynamicDatasourceDIYGuideProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * 动态数据源 自动配置
 */

@EnableConfigurationProperties({ZooDynamicDatasourceDIYGuideProperties.class})
@ConditionalOnProperty(value = ZooDynamicDatasourceAutoConfiguration.ENABLE, havingValue = "true", matchIfMissing = true)
public class ZooDynamicDatasourceAutoConfiguration {
    
    public static final String ENABLE = "zoo.switch.artifact-dynamic-datasource.enable";
    
}